public class Test {
    public static void main(String[] args) {
        Person wang = new Person("老王",30);
        Person li = new Person("老李",25);
        Animal dog = new Dog(2,"黑颜色");
        Animal cat = new Cat(3,"灰颜色");
        wang.keepPet(dog,"骨头");
        li.keepPet(cat,"鱼");
    }
}
